#include <iostream>
#include "goods.h"
#include "cart.h"
using namespace std;

int main()
{
    const int N = 4;
	Cart myCart;
	Goods* goods[N] = {
			new MusicCD("Eagles",12),
			new Video("African Animal",23),
			new Book("The DaVinci Code",22),
			new Magazine("Reader",5)
	};

	for(int i=0; i<N; i++)
		myCart.addItem(goods[i]);

	cout<<myCart.goodsList()<<endl;
	cout<<"Total Price: "<<myCart.totalPrice()<<endl;

	for(int i=0; i<N; i++)
		delete goods[i];
}
